package data.type.and.operator;

import general.DataTypeNOperator;

public class DtoNonPrimitiveVariable implements DataTypeNOperator {
//	Nonprimitive variable
	NPVariable npVariable;
	
	private void toPrint()
	{
		npVariable = new NPVariable("test nonprimitive variable");
		System.out.println(npVariable.getValue());
	}

	@Override
	public void run() {
		new DtoNonPrimitiveVariable().toPrint();
	}
}

class NPVariable {
	String value;
	public NPVariable(String value)
	{
		this.value = value;
	}
	
	public String getValue()
	{	
		String valuePrint = "Gia tri la: " + value;
		return valuePrint;
	}
}